<?php
include_once dirname(__FILE__)."/../lang/error.php";
include_once dirname(__FILE__)."/../io/rows.php";
include_once dirname(__FILE__)."/../io/db.php";
class message extends rows{
 	function init(){
 		$this->tableName="sn_message";
 		$this->col["msid"]   = new column("msid",dataCheck::INTEGER);
 		$this->col["mstype"] = new column("mstype",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["msuid"]  = new column("msuid",dataCheck::INTEGER|dataCheck::NOTNULL);
 		$this->col["msto"]  = new column("msto",dataCheck::INTEGER|dataCheck::NOTNULL);
		$this->col["mstitle"]  = new column("mstitle",dataCheck::STRING|dataCheck::NOTNULL);
 		$this->col["mscontent"]  = new column("mscontent",dataCheck::STRING|dataCheck::NOTNULL);
		$this->col["msisread"]  = new column("msisread",dataCheck::INTEGER);
 		$this->col["mstime"]  = new column("mstime",dataCheck::INTEGER|dataCheck::NOTNULL);
 	} 	 	
 }
